The Math That Predicted The Arab Spring